package com.hlt.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author lzf
 * @since 2024-11-25
 */
@Data
@TableName("likes")
@ApiModel("点赞")
public class Likes implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 点赞ID，主键
     */
    @TableId(value = "like_id", type = IdType.AUTO)
    @ApiModelProperty("点赞ID")
    private Integer likeId;

    /**
     * 文章ID
     */
    @ApiModelProperty("文章ID")
    private Integer postId;

    /**
     * 点赞用户ID
     */
    @ApiModelProperty("用户ID")
    private Integer userId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;

}
